import request from '@/utils/request'

export const updatePassword = (userId, data) => {
  return request({
    url: `/users/${userId}/password`,
    method: 'put',
    data
  })
}